<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-content">
				<div class="xinsu-data-content">
					<div class="xinsu-title">
						<span class="layui-breadcrumb">
							<a><cite>当前位置</cite></a>
							<a><cite>员工管理</cite></a>
						</span>
					</div>
					<div class="xinsu-add">
						<a href="javascript:;"><i class="layui-icon">&#xe61f;</i>新增员工</a>
					</div>
					<form class="layui-form xinsu-form" action="" method="get">
						<div class="layui-form-item">
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">代理商</label>
								<div class="layui-input-inline xinsu-input-inline">
									<select name="aid">
										<option value="0">全部</option>
										<{foreach $agent as $val}>
										<option value="<{$val.id}>" <{if $aid == $val.id}>selected<{/if}>><{$val.username}></option>
										<{/foreach}>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">姓名</label>
								<div class="layui-input-block xinsu-input-block4">
									<input type="text" name="username" class="layui-input" value="<{if '0' != $sear}><{urldecode($sear)}>&nbsp;<{/if}>" />
								</div>
							</div>
							<button class="layui-btn xinsu-btn">查询</button>
							<span>记录总数：共 <{$total}> 条</span>
						</div>
					</form>
					<div class="layui-form xinsu-form">
						<table class="layui-table">
							<thead>
								<tr>
									<th>ID</th>
									<th>代理商</th>
									<th>姓名</th>
									<th>性别</th>
									<th>联系方式</th>
									<th>操作</th>
								</tr> 
							</thead>
							<tbody>
								<{if empty($list) == false}>
								<{foreach $list as $val}>
								<tr>
									<td><{$val.id}></td>
									<td><{$val.bname}></td>
									<td><{$val.username}></td>
									<td><{$val.sex}></td>
									<td><{$val.mobile}></td>
									<td>
									<{if $_SESSION["admin"]['role_id']!=2}>
										<a class="xinsu-fontcolor-blue" href="/<{$common_info.module}>/<{$common_info.controller}>/user/<{$val.id}>">用户查询</a>
										<a class="xinsu-fontcolor-blue" href="/<{$common_info.module}>/<{$common_info.controller}>/user_bill/<{$val.id}>">员工名下客户-资金明细</a>
									<{/if}>
										<a class="xinsu-fontcolor-blue xinsu-amend xinsu-edit" href="javascript:;" data="<{$val.id}>">修改</a>
									</td>
								</tr>
								<{/foreach}>
								<{else}>
								<tr>
									<td colspan="6">暂无数据</td>
								</tr>
								<{/if}>
							</tbody>
						</table>
					</div>
					<div class="xinsu-page">
						<div class="xinsu-show">
							<{$page}>
						</div>
						<div class="xinsu-clear"></div>
					</div>
				</div>
			</div>
		</div>
<{include file="public/footer.html"}>